runCatchingSuspend
Executes a suspend function block within a try-catch and returns the result as a Result.
Return
Result
Parameters
block
A suspend function that returns a result.
Executes a suspend function block on the receiver T within a try-catch and returns the result as a Result.
Return
Result
Parameters
block
A suspend function that returns a result, acting on the receiver T.